package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_details")
public class DetailsBean {
    @TableId(value = "pk_detailsId", type = IdType.AUTO)
    private Integer id;
    @TableField(exist = false)
    private ProductBean product;
    @TableField("fk_orderId")
    private Integer orderId;
    @TableField("d_fund")
    private Integer fund;

    public DetailsBean(ProductBean product, Integer orderId, Integer fund) {
        this.product = product;
        this.orderId = orderId;
        this.fund = fund;
    }

    public DetailsBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getFund() {
        return fund;
    }

    public void setFund(Integer fund) {
        this.fund = fund;
    }

    @Override
    public String toString() {
        return "DetailsBean{" +
                "id=" + id +
                ", product=" + product +
                ", orderId=" + orderId +
                ", fund=" + fund +
                '}';
    }
}
